#div01 {
  margin: 1rem;
  border: 1px solid #ff0000;
  padding: 0.5rem;
}

#div01 > span {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem 2rem;
  background-color: #ff0000;
  color: #fff;
}
